package tech.aistar.day07.homework;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/17 8:37 上午
 */
public class TestBook {
    public static void main(String[] args) {
        //并行开发...
        Book b1 = new Book(1,"1001","等一个人的咖啡",100.0d);
        Book b2 = new Book(2,"1002","丰乳肥臀",200.0d);
        Book b3 = new Book(3,"1003","西游记",400.0d);
        Book b4 = new Book(4,"1004","西游记",500.0d);
        Book b5 = new Book(5,"1005","西游记",600.0d);
        Book b6 = new Book(6,"1006","红楼梦",700.0d);

        //创建是接口对象
        IBookBiz biz = new BookBizImpl();

        //添加图书的方法
        biz.add(b1);
        biz.add(b2);
        biz.add(b3);
        biz.add(b4);
        biz.add(b5);
        biz.add(b6);

        //根据图书名称进行删除操作
        biz.deleteByName("西游记");

        //打印所有的图书信息
        biz.outputAllBooks();
    }
}
